/*
 * @Author: lqx 1096345766@qq.com
 * @Date: 2025-04-16 11:38:34
 * @LastEditors: lqx 1096345766@qq.com
 * @LastEditTime: 2025-04-16 14:04:13
 * @FilePath: \jxzr-lims-web\src\configs\antd\theme.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { ConfigProviderProps } from 'antd'

// const colorMaps = {
//   colorPrimary: '#1890ff',
//   colorHeaderBg: '#2f54eb',
//   colorError: '#ff4d4f'
// }

// const { colorPrimary, colorHeaderBg } = colorMaps

export const antdThemeConfigure = {
  pagination: {},
  theme: {
    cssVar: { prefix: 'jxzr' },
    hashed: false,
    token: {
      // 官方token-START
      colorPrimary: '#1890ff',
      colorLinkHover: '#40a9ff',
      colorLink: '#1890ff',
      colorError: '#ff4d4f',
      colorHeaderBg: '#2f54eb',
      borderRadius: 2,
      // 官方token-END
      // 自定义token-START
      smScreenWidth: '1316px', // 例如：css属性取：var(--jxzr-sm-screen-width)
      baseFontColor: '#333333', // 基础字体颜色（常用）
      secFontColor: '#666666', // 次要字体颜色（常用）
      borderColor: '#d9d9d9', // 边框颜色
      lightBackground: '#f5f5f5',
      headerColor: '#f0f2f5',
      textGray: '#999999',
      textDarkGray: '#666666'
      // 自定义token-END
    },
    components: {
      Switch: {
        colorPrimary: '#00CC82', // 设置Switch打开状态的颜色
        // colorHover: '#52C41A', //不起作用，依旧会被token中的colorPrimary覆盖
        colorPrimaryHover: '#3DD09B'
      },
      Badge: {
        colorError: '#FF4D4F',
        colorSuccess: '#52C41A'
      },
      Tabs: {
        itemSelectedColor: '#222432',
        itemHoverColor: '#222432',
        itemColor: '#878A99',
        titleFontSize: 16
      }
    }
  }
} as ConfigProviderProps
